package com.meizhitech.mzcmsapi.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 数字工具库
 */
public class NumberUtil {
    private NumberUtil() {
    }

    /**
     * 判断是否是手机号
     */
    public static  boolean isPhone(String phone) {
        Pattern pattern = Pattern.compile("^1[0-9]\\d{9}$");
        Matcher matcher = pattern.matcher(phone);
        return  matcher.matches();
    }
}
